![]() |
PATH![]() |
![]() ![]() |
Make is an application command that creates a new object. The command can include values for properties of the object, for the data of the object, or both.
make [new] className at referenceToLocation ¬
[ with properties ¬
{ propertyLabel:propertyValue [, propertyLabel:propertyValue ]...}]¬
[ with data dataValue ]
The continuation characters (¬) indicate that the command must all be on one line (or on a line extended with continuation characters). They are not a required part of the syntax.
The following example creates a document named "New Report" in the current directory. (The current directory is typically the directory where the application was launched, the directory where the application last opened or saved a previous document, or another directory specified by the application. The current directory may be affected by settings in the General Controls control panel.)
tell application "AppleWorks"
make new document at beginning with properties {name:"New Report"}
end tell